<div class="col-lg-12 wrapperbox">
	<form class="form-horizontal" role="form" method="POST">	  
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">菜名</label>
			<div class="col-sm-10">
					<input type="text" class="form-control" id="fdname" placeholder="菜名">         
			</div>
			</div>
			<div class="form-group">
				<label	label for="" class="col-sm-2 control-label">别名</label>
			<div class="col-sm-10">
					<input type="text" class="form-control" id="fdothername" placeholder="别名">         
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">简码</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdshortcode" placeholder="简码">
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">保质期</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdExp" placeholder="保质期">
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">商品分类</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdclass" placeholder="商品分类">
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">计量单位</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdunit" placeholder="计量单位">
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">供货单位</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdaddress" placeholder="供货单位">
			</div>
			</div>
			<div class="form-group">
				<label for="" class="col-sm-2 control-label">生产厂家</label>
			<div class="col-sm-10">
				<input type="text" class="form-control" id="fdFactory" placeholder="生产厂家">
			</div>
			</div>
		
		</form> 		
</div>
<script>
	var str = location.hash.split("=")[1];
	$.get("/base/foodedit",{str},function(data){
		 $("#fdname").val(data.fdname) //菜名
		 $("#fdothername").val(data.fdothername) //别名
		 $("#fdshortcode").val(data.fdshortcode) //简码
		 $("#fdExp").val(data.fdExp)	//保质期
		 $("#fdclass").val(data.fdclass)	//商品分类
		 $("#fdunit").val(data.fdunit)	//计量单位
		 $("#fdaddress").val(data.fdaddress)	//供货单位
		 $("#fdFactory").val(data.fdFactory)	//生产厂家
	})
</script>